#include "comEmployee.h"

ComEmployee::ComEmployee(const string& nume,const string& prenume,const string& ssn,double gross,double rate):Employee(nume,prenume,ssn){

	setGrossSale(gross);setComRate(rate);
}

double ComEmployee::getGrossSale()const{return (*this).grossSale;}
double ComEmployee::getComRate()const{return (*this).comRate;}

void ComEmployee::setGrossSale(double gross){
	(*this).grossSale=gross;
}
void ComEmployee::setComRate(double rate){
	(*this).comRate=rate;
}
double ComEmployee::earnings()const{
	return getComRate();
}
void ComEmployee::print()const{
	std::cout<<" Com Employee= \n";
	Employee::print();
	std::cout<<" Gross Sale= "<<(*this).grossSale<<" Com Rate: "<<(*this).comRate;
}
